package com.example.helloworld;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * Description:hello world
 * <p>
 * Copyright: 天津联想协同科技有限公司
 * <p>
 *
 * @author 赵希坤 zhaoxikun
 * @date 2021/8/16 8:26 下午
 */
@RestController
@RequestMapping
@Slf4j
public class HelloWorldCtrl {

    @RequestMapping("/hello/{name}")
    public String hello(@PathVariable("name") String name) {
        log.info("hello {}", name);
        return "hello " + name;
    }

}
